#include "PzsPizza.h"

using namespace FPHdPizzas;

Pizza::Pizza()
{

}

string Pizza::getName()
{
    return m_name;
}

void Pizza::prepare()
{
    std::cout << "Prepare: " << m_name << std::endl;
    std::cout << "Tossing dough ..." << std::endl;
    std::cout << "Adding sauce ..." << std::endl;
    std::cout << "Adding toppings: ..." << std::endl;

    for(auto const &item: m_toppings) {
        std::cout << " " << item << std::endl;
    }
}

void Pizza::bake()
{
    std::cout << "Bake for 25 minutes at 350" << std::endl;
}

void Pizza::cut()
{
    std::cout << "Cut the pizza into diagonal slices" << std::endl;
}

string Pizza::toString()
{
    std::string display;
    display.append("---- " + m_name + " ----\n");
    display.append(m_dough + "\n");
    display.append(m_sauce + "\n");

    for(auto const item: m_toppings) {
        display.append(item + "\n");
    }

    return display;
}
